package com.rc.saas.mini.mapper.member;

import com.rc.saas.mini.common.base.BaseMapper;
import com.rc.saas.mini.model.member.MemberTicket;
import com.rc.saas.mini.model.member.MemberTicketExample;
import com.rc.saas.mini.vo.member.MemberTicketVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberTicketMapper extends BaseMapper<Long, MemberTicket, MemberTicketExample> {
    List<Long> listTicketType(Long memberId);

    List<MemberTicketVo> listMemberTicketByMember(@Param("tenantCode") String tenantCode, @Param("memberId") Long memberId, @Param("usingStatus") String usingStatus,@Param("status") String status);

    List<MemberTicketVo> listExpiredTicket(@Param("tenantCode") String tenantCode, @Param("memberId") Long memberId);

    List<MemberTicketVo> listPageTicketByElecStationId(@Param("memberId") Long memberId, @Param("elecStationId") Long elecStationId,@Param("usingStatus") String usingStatus);
}